<template>
	<view style="padding: 30rpx;">
		<navigator url="/pages/APIpages/Logepage/Logepage"><button >打印日志</button></navigator>
		<navigator url="/pages/APIpages/TimePage/TimePage"><button >计时器</button></navigator>
		<button @click="onLog">数据缓存</button>
		<navigator url="/pages/APIpages/BefreePae/BefreePae"><button>页面刷新</button></navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			uni.preloadPage({
				url:"/pages/APIpages/StoragePage/StoragePage"
			})
		},
		methods: {
			onLog(){
				uni.navigateTo({
					url:"/pages/APIpages/StoragePage/StoragePage",
					success() {
						console.log("navigateTo-->success");
					},
					fail(e) {
						console.log("navigateTo-->fail",JSON.stringify(e));
					},
					complete() {
						console.log("navigateTo-->complete");
					},
				})
				//uni.redirectTo({
				//	url:"/pages/APIpages/StoragePage/StoragePage"
				//})
				//uni.switchTab({
				//	url:"/pages/APIpages/StoragePage/StoragePage"
				//})
				
			},
			
			
		}
	}
</script>

<style>

</style>
